package com.ruoyi.merchant.mapper;

import com.ruoyi.merchant.domain.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单明细Mapper接口
 */
public interface OrderItemMapper {
    /**
     * 查询订单的商品明细
     */
    List<OrderItem> selectByOrderId(@Param("orderId") Long orderId);

    /**
     * 批量查询订单的商品明细
     */
    List<OrderItem> selectByOrderIds(@Param("orderIds") List<Long> orderIds);
}
